package com.amumu.drama.common.modules.sumapay.tools;

import java.text.SimpleDateFormat;
import java.util.Date;

public class RandomTool {
    Date now = new Date();  

	public String getRequestId()  
	{   
	    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
	    String requestId= sdf.format(now);
	    return requestId;
	} 
	
	public String getDate(){
	    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
	    String date= sdf.format(now);
	    return date;

	}
}
